package top.codestudy.btpair.util;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;

import java.util.Set;

public class BTManager {
    private static final String TAG = "BTManager";

    public static BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();

    public static boolean isSupportBT(){
        return bluetoothAdapter != null;
    }

    public static Set<BluetoothDevice> getBondDevice(){
        return bluetoothAdapter.getBondedDevices();
    }
}
